import axios from '@/utils/request'

// 客户机
const getClientList = (params) => axios.postAction('/api/device/client/list', params)
// 部门组别
const getDepartList = (params) => axios.postAction('/api/system/dept/treeselect', params)
// 工种
const getWorkTypeList = () => axios.postAction('/api/basic/profession/list-profession', {})
// 职务
const getPostList = (params) => axios.postAction('/api/system/post/list', params)
// 地区
const getRegionList = (params) => axios.getAction('/api/district/list-tree', params)
// 所有菜单
const getAllMenuList = () => axios.postAction('/api/system/menu/treeselect', {}) 
// 所有订单
const getOrderList = () => axios.postAction('/api/basic/order/list', {}) 
// 客户
const getCustomList = () => axios.postAction('/api/basic/custom/list', {}) 
// 款式
const getStyleList = () => axios.postAction('/api/basic/style/list', {}) 
// 颜色
const getColorList = () => axios.postAction('/api/basic/color/list', {}) 
// 尺码
const getSizeList = () => axios.postAction('/api/basic/size/list', {}) 
// 工段
const getSectionList = () => axios.postAction('/api/basic/section/list', {})
// 产品部位
const getPartList = () => axios.postAction('/api/basic/product-part/list', {}) 
// 产品类型
const getProdTypeList = () => axios.postAction('/api/basic/product-type/list', {}) 
// 制单--未上线
const getMakeList = () => axios.getAction('/api/mo/mo/get-mo-product-part', {}) 
// 制单--全部
const getAllMakeList = () => axios.postAction('/api/mo/mo/mo-list', {}) 
// 上线的路线图
const getOnlineRoadMapList = (params) => axios.postAction('/api/hanger/hangerline-realtime/get-online-roadmap-list', params) 
// 角色
const getRoleList = () => axios.getAction('/api/system/role/optionselect', {})
// 用户列表
const getUserList = () => axios.postAction('/api/system/user/get-users ', {})
// 流水线
const getWaterList = () => axios.postAction('/api/device/hanger-line/list', {})
// 流水线组别 车间
const getWaGroupList = () => axios.postAction('/api/device/hanger-line-group/list', {})
// 员工组别
const getEmplGruopList = () => axios.postAction('/api/basic/staff-group/list', {})
// 员工组别
const getSkillGradeList = () => axios.postAction('/api/basic/skill-grade/list', {})
// 员工列表
const getEmplList = ()=> axios.postAction('/api/basic/staff/list', {})
// 未处理通知通知
const getUntreatNoticeList = () => axios.postAction('/api/hanger/hanger-notify/list', {pageNo: 1 , pageSize : 3,resolved :  0})
// 机种管理
const getMachineTypeList = () => axios.postAction('/api/device/device-model/list', {})
//主轨列表
const getTrackList = () => axios.postAction('/api/device/master-track/list', {})
// 收藏夹列表
const getBookmarksList = () => axios.postAction('/api/system/menu-favorites/list', {})
// 收藏夹列表
export {
  getClientList,
  getDepartList,
  getWorkTypeList,
  getPostList,
  getRegionList,
  getAllMenuList,
  getOrderList,
  getCustomList,
  getStyleList,
  getColorList,
  getSizeList,
  getSectionList,
  getPartList,
  getProdTypeList,
  getMakeList,
  getAllMakeList,
  getOnlineRoadMapList,
  getRoleList,
  getUserList,
  getWaterList,
  getWaGroupList,
  getEmplGruopList,
  getSkillGradeList,
  getEmplList,
  getUntreatNoticeList,
  getMachineTypeList,
  getTrackList,
  getBookmarksList
}
